package com.shiminghui;

public class HuiWen {
    public static void main(String[] args) {
        int a = 121;
        int get = a%10;
        int shi = a/10%10;
        int bai = a/100%10;
        int b =get*100+shi*10+bai;
        if (a==b){
            System.out.println("回文");
        }

        int num = 0;
        int temp = a;
        while (temp != 0){
            int ge = temp%10;
            temp=temp/10;
            num = num*10 +ge;
        }
        if (a == num){
            System.out.println("回文");
        }
    }
}
